package com.cskaoyan.javase.overload._2exercise;

/**
 * 小试牛刀：
 * 使用方法重载，输出各种数据类型
 *
 * @since 10:01
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo {
    public static void main(String[] args) {
        printElement(10);
        printElement("123");
        printElement('z');
    }

    public static void printElement(byte a) {
        System.out.println(a);
    }

    public static void printElement(short a) {
        System.out.println(a);
    }

    public static void printElement(int a) {
        System.out.println(a);
    }

    public static void printElement(long a) {
        System.out.println(a);
    }

    public static void printElement(float a) {
        System.out.println(a);
    }

    public static void printElement(double a) {
        System.out.println(a);
    }

    public static void printElement(char a) {
        System.out.println(a);
    }

    public static void printElement(boolean a) {
        System.out.println(a);
    }

    public static void printElement(String a) {
        System.out.println(a);
    }
}
